<<<<<<< HEAD
const { defineConfig } = require("@vue/cli-service");


    // 设置mock,模拟后端数据
    onBeforeSetupMiddleware(devServer) {
      // app应用对象
      const app = devServer.app;
      mock(app);
    },
  },
});
=======
const { defineConfig } = require('@vue/cli-service')
const mock = require('./mock')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    //跨域
    proxy: {
      '/wapi': {
        target: 'https://www.zhipin.com/',
        changeOrigin: true,
      },
    },
    onBeforeSetupMiddleware(dev) {
      mock(dev.app)
    },
  },
})
>>>>>>> lin
